/*******************************************************************************
 * CBPodcastManager.m
 * ComicsBlog
 *
 * Adrien Bougouin <adrien.bougouin@gmail.com>
 */

#import "CBPodcastManager.h"

@implementation CBPodcastManager

static CBNewsViewController *_podcastNewsView = nil;

+ (void) changePlayedPodcastNewsView:(CBNewsViewController *) podcastNewsView {
  [_podcastNewsView release];

  _podcastNewsView = [podcastNewsView retain];
}

+ (BOOL) isPlayingPodcast {
  return (_podcastNewsView != nil);
}

+ (NSUInteger) podcastIdentifier {
  return [_podcastNewsView newsIdentifier];
}

+ (UIWebView *) podcastNewsView {
  return [_podcastNewsView newsView];
}

+ (void) stopPodcast {
  [_podcastNewsView release];

  _podcastNewsView = nil;
}

@end

